package com.yanzhenjie.andserver.sample.controller.auth.vo;

/**
 * 作者: Tao
 * 日期: 2023/2/20
 * 时间: 19:39
 * 描述: 登录出参
 */
public class LoginVo {

    /**
     * 校验结果（200：成功，401：失败）
     */
    private int status;

    /**
     * 请求凭证
     */
    private String session_id = "";

    private LockInfo lock_info;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getSession_id() {
        return session_id;
    }

    public void setSession_id(String session_id) {
        this.session_id = session_id;
    }

    public LockInfo getLock_info() {
        return lock_info;
    }

    public void setLock_info(LockInfo lock_info) {
        this.lock_info = lock_info;
    }

    public static class LockInfo {
        /**
         * 是否已锁定
         */
        private boolean locked;

        /**
         * 剩余重试次数
         */
        private int retry_time;

        /**
         * 锁定后剩余解除锁定的时间，单位秒
         */
        private int unlockTime;

        public boolean isLocked() {
            return locked;
        }

        public void setLocked(boolean locked) {
            this.locked = locked;
        }

        public int getRetry_time() {
            return retry_time;
        }

        public void setRetry_time(int retry_time) {
            this.retry_time = retry_time;
        }

        public int getUnlockTime() {
            return unlockTime;
        }

        public void setUnlockTime(int unlockTime) {
            this.unlockTime = unlockTime;
        }
    }
}
